<?php
//开启session
session_start();
require_once './lib/image.func.php';
 
$code= new Code(4,1,50,100);
$_SESSION['code']= $code->getCode();
$code->outImage();
// http://shopimooc.com/code.php